package com.mall.order.feign;

import com.mall.common.annotation.LogOperation;
import com.mall.common.utils.Result;
import com.mall.order.dto.WareSkuLockDto;
import com.mall.order.vo.OrderItemVo;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @author: 谢君臣
 * @Date: 2022/8/9-22:24
 * @version: 1.0
 * @function:
 */
@FeignClient("wareServer")
public interface WareFeignClient {

    @PostMapping("/ware/waresku/hasStock")
    Result<List<Long>> hasStock(@RequestBody List<Long> skuIds);

    @PostMapping("/ware/waresku/lock/order")
    @ApiOperation("锁库存")
    Result orderLockStock(@RequestBody WareSkuLockDto dto);

}
